//
//  PKMorePopoverVC.h
//  PDFKitTest
//
//  Created by Emo, on 2024/1/25.
//

#import <UIKit/UIKit.h>
@class PKMorePopoverVC,PKMorePopoverModel,PKMorePopoverCell;

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    PKPopoverTypeTitle,
    PKPopoverTypeImageTitle,
}PKPopoverType;

typedef enum : NSUInteger {
    PKPopoverSelectTypeText,
    PKPopoverSelectTypeDraw,
}PKPopoverSelectType;

@protocol PKMorePopoverDelegate <NSObject>

- (void)popoverVC:(PKMorePopoverVC *)vc didSelectCell:(PKPopoverSelectType)type;

@end

@interface PKMorePopoverVC : UIViewController

@property (nonatomic, weak) id<PKMorePopoverDelegate> delegate;

@property (nonatomic, assign) PKPopoverType popoverType;

@property (nonatomic, weak) UIView * sourceView;

@end

@interface PKMorePopoverCell : UITableViewCell

@property (nonatomic, strong) PKMorePopoverModel * model;

@end

@interface PKMorePopoverModel : NSObject

- (instancetype)initWithDic:(NSDictionary *)dic;

@property (nonatomic, copy) NSString * image;

@property (nonatomic, copy) NSString * title;

@property (nonatomic, assign) PKPopoverSelectType type;

@end

NS_ASSUME_NONNULL_END
